package org.jeecg.modules.basic.demo.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: lwgy_base_student
 * @Author: jeecg-boot
 * @Date:   2020-12-11
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DTO", description="DTO")
public class ExportStudent implements Serializable {
    private static final long serialVersionUID = 1L;

	/**学生ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "学生ID")
    private String id;
	/**学号*/
	@Excel(name = "学号", width = 15)
    @ApiModelProperty(value = "学号")
    private String studentNumber;
	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String studentName;
	/**身份证号*/
	@Excel(name = "身份证号", width = 15)
    @ApiModelProperty(value = "身份证号")
    private String studentIdcard;
	/**户籍*/
	@Excel(name = "户籍", width = 15)
    @ApiModelProperty(value = "户籍")
    private String studentAddress;
	/**性别*/
	@Excel(name = "性别", width = 15, dicCode = "sex")
	@Dict(dicCode = "sex")
    @ApiModelProperty(value = "性别")
    private String studentSex;
	/**校区*/

    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "校区")
    private String studentCampus;
	/**院系*/

    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "院系")
    private String studentCollege;
	/**专业*/
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "专业")
    private String studentMajor;
	/**班级*/
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "班级")
    private String studentClass;
	/**年级*/
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    private String studentYear;
	/**学历*/
	@Excel(name = "学历", width = 15, dicCode = "student_education")
	@Dict(dicCode = "student_education")
    @ApiModelProperty(value = "学历")
    private String studentEducation;
    /**学制*/
    @Excel(name = "学制", width = 15,dicCode = "student_school_system")
    @Dict(dicCode = "student_school_system")
    @ApiModelProperty(value = "学制")
    private String studentSchoolSystem;
	/**入学时间*/
	@Excel(name = "入学时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入学时间")
    private Date studentInschool;
	/**离校时间*/
	@Excel(name = "离校时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "离校时间")
    private Date studentLeaveschool;
	/**学生状态0：在校，1：离校*/
	@Excel(name = "学生状态0：在校，1：离校", width = 15, dicCode = "student_state")
	@Dict(dicCode = "student_state")
    @ApiModelProperty(value = "学生状态0：在校，1：离校")
    private String studentState;
	/**照片*/
	@Excel(name = "照片", width = 15)
    @ApiModelProperty(value = "照片")
    private String studentPhoto;
	/**电话*/
	@Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private String studentPhone;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**是否删除*/
	@Excel(name = "是否删除", width = 15, dicCode = "student_delflag")
	@Dict(dicCode = "student_delflag")
    @ApiModelProperty(value = "是否删除")
    private String studentDelflag;

	@ApiModelProperty(value = "辅导员")
    @Excel(name = "辅导员", width = 15,dictTable = "sys_user",dicCode = "work_no",dicText = "realname")
    @Dict(dictTable = "sys_user",dicCode = "work_no",dicText = "realname")
	private String studentTeacher;
    @TableField(exist = false)
	private String isBed;//是否有床位
    @TableField(exist = false)
	private String bedName;//床位名称

    @Excel(name = "校区", width = 15)
    @TableField(exist = false)
    private String campusName;
    @TableField(exist = false)
    @Excel(name = "学院", width = 15)
    private String collegeName;
    @TableField(exist = false)
    @Excel(name = "年级", width = 15)
    private String yearName;
    @TableField(exist = false)
    @Excel(name = "专业", width = 15)
    private String majorName;
    @TableField(exist = false)
    @Excel(name = "班级", width = 15)
    private String className;
    @TableField(exist = false)
    private String teacherName;

}
